package lab02.test03;

import java.util.Scanner;

public class Test03 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        System.out.println("请输入学生信息：");
        Student st = new Student();

        System.out.println("姓名：");
        st.setSname(sc.next());

        System.out.println("计算机成绩：");
        st.setComputer(sc.nextFloat());

        System.out.println("数学成绩：");
        st.setMath(sc.nextFloat());

        System.out.println("英语成绩：");
        st.setEnglish(sc.nextFloat());

        st.sum();
        st.average();
        st.max();
        st.min();
        st.print();
    }

}
